package com.mybatisplus.demo.android.util;


import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

/**
 * @author: Allen.
 * @date: 2018/7/25
 * @description:
 */

public class LoggerUtil {

    public static void info(String msg) {
        Logger logger = LogManager.getLogger(LogManager.ROOT_LOGGER_NAME);
        logger.info(msg);
    }

    public static void info(String msg, Class<?> clazz) {
        Logger logger = LogManager.getLogger(clazz);
        logger.info(msg);
    }

    public static void error(String msg, Class<?> clazz) {
        Logger logger = LogManager.getLogger(clazz);
        logger.error(msg);
    }
}
